package com.ruoyi.web.dao.BT;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.domain.BT.TorrentCommentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TorrentCommentDao extends BaseMapper<TorrentCommentEntity> {

    @Select("select * from bt_torrent_comment where torrent_id=#{torrentId}")
    List<TorrentCommentEntity>  selectByTorrentId(Integer torrentId);

    @Select("select * from bt_torrent_comment where pid=#{pid}")
    List<TorrentCommentEntity> selectByParentId(Integer pid);
}
